﻿/******************************************************************************
 * 【本类功能概述】                                 					      *
 *  版权所有（C）2020-20XX，                                        *
 *  保留所有权利。                                                            *
 ******************************************************************************
 *  作者 : <hughjk>
 *  创建时间:2019/11/24 22:16:51
 *  文件描述: 
 *****************************************************************************/
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Ability
{


    public class AbilityManage : ModelInfo
    {
        [HideInInspector] public Transform Root;
        public Ability[] AllAbility;
        public override void InitModel(Controller controller)
        {
            base.InitModel(controller);
            Root = m_transform.FindNode("Ability");
            AllAbility = Root.GetComponentsInChildren<Ability>();
            for (int i = 0; i < AllAbility.Length; i++)
            {
                AllAbility[i].InitModel(controller);
            }
        }
        public override void GetModel()
        {
            base.GetModel();
            for (int i = 0; i < AllAbility.Length; i++)
            {
                AllAbility[i].GetModel();
            }
        }
        public override void OnUpdata(float dt)
        {
            for (int i = 0; i < AllAbility.Length; i++)
            {
                AllAbility[i].OnUpdata(dt);
            }
        }
    }
}

